﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.XtraEditors;
using System.Windows.Forms;

namespace Loki.UI.Win
{
	public static class MessageBoxes
	{
		public static bool Confirm(string P_FormatString, params object[] P_FormatParams)
		{
			return XtraMessageBox.Show(string.Format(P_FormatString, P_FormatParams), String.Empty, MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK;
		}

		public static void Message(string P_FormatString, params object[] P_FormatParams)
		{
			XtraMessageBox.Show(string.Format(P_FormatString, P_FormatParams), "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
		}

		public static void Warning(string P_FormatString, params object[] P_FormatParams)
		{
			XtraMessageBox.Show(string.Format(P_FormatString, P_FormatParams), "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
		}
	}
}
